package com.company.pddpre09;

public class Test {
    public static void main(String[] args) {
        int a = 3,b = 6;
        while(b != 0){
            int temp = a;
            a = b;
            b = temp % b;
        }
        System.out.println(a);
    }
}
